package io;
import io.InputUtil.InputField;

import java.io.Serializable;

public class Person implements Serializable {
    @InputField
    private String name;
    @InputField
    private char gander;
    @InputField
    private int age;
    @InputField
    private double salary;
    @InputField
    private transient String otherInfo;
    public Person(){}

    public Person(String name, char gander, int age, double salary, String otherInfo) {
        this.name = name;
        this.gander = gander;
        this.age = age;
        this.salary = salary;
        this.otherInfo = otherInfo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public char getGander() {
        return gander;
    }

    public void setGander(char gander) {
        this.gander = gander;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public String getOtherInfo() {
        return otherInfo;
    }

    public void setOtherInfo(String otherInfo) {
        this.otherInfo = otherInfo;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", gander=" + gander +
                ", age=" + age +
                ", salary=" + salary +
                ", otherInfo='" + otherInfo + '\'' +
                '}';
    }
}
